package com.antdesignbackend.backend.animalNumber.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;

/**
 * 动物数量变动明细表
 *
 * @author 林宇杰
 * @email animalNumber
 * @date 2020-08-27 10:26:59
 */

@Data
@TableName(value = "t_animalNumber")
public class AnimalNumber implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId(value = "Id",type = IdType.AUTO)
	private Integer id;

	//企业ID
	@TableField(value = "Eid")
	private Integer eid;
	//种公畜数量
	@TableField(value = "Species")
	private Integer species;
	//后备母畜数量
	@TableField(value = "Reserve")
	private Integer reserve;
	//能繁母畜数量
	@TableField(value = "Menstruation")
	private Integer menstruation;
	//哺乳牲畜数量
	@TableField(value = "Lactation")
	private Integer lactation;
	//保育牲畜数量
	@TableField(value = "Conservation")
	private Integer conservation;
	//育成牲畜数量
	@TableField(value = "Commodity")
	private Integer commodity;
	//家禽存栏数
	@TableField(value = "Livestock")
	private Integer livestock;
	//动物种类0家禽1牲畜
	@TableField(value = "AnimalType")
	private Integer animalType;
	//进厂时间
	@TableField(value = "StarTime")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date starTime;
	//哺乳转保育时间
	@TableField(value = "ConservationTime")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date conservationTime;
	//保育转育成时间
	@TableField(value = "GrowTime")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date growTime;
	//创建时间
	@TableField(value = "CreateTime")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	//进厂途径 1初始化2外调3繁殖
	@TableField(value = "Channel")
	private Integer channel;
	//批次号
	@TableField(value = "BatchNumber")
	private String batchNumber;
	//相关表ID
	@TableField(value = "Pid")
	private Integer pid;
}
